/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package db.server.BUS;

import db.server.DAO.OptionDAO;
import db.server.DTO.ConfigDTO;

import javax.xml.parsers.ParserConfigurationException;

/**
 *
 * @author QuangKhai
 */
public class OptionBUS {
    private OptionDAO optionDAO = new OptionDAO();
    
    ///Read config file
    public ConfigDTO readConfigFile(String path){
        return optionDAO.readConfigFile(path);
    }
    
    ///Save config
    public void saveConfig(ConfigDTO config, String path) throws ParserConfigurationException{
        optionDAO.writeConfig(config, path);
    }
}
